package com.ponhu.ea2.stockcenter.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * OMS销售订单/采购中心订单信息DTO
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "OMS销售订单DTO")
public class OrderInfoDTO implements Serializable {

    /**
     * 单据号
     */
    @NotEmpty(message = "单据号不能为空")
    @ApiModelProperty(value = "单据号")
    private String docNo;

    /**
     * 商品信息列表
     */
    @NotEmpty(message = "货品列表不能为空")
    @Valid
    @ApiModelProperty(value = "商品信息列表")
    private List<OrderInventoryInfo> orderInventoryInfoList;
}
